package com.hsy.crm.web.domain.po.unit;

import com.hsy.crm.web.domain.entity.Unit;
import com.hsy.crm.web.domain.entity.Unit;

public class ProductUnitPo {

    private Long id;
    private String name;
    private Integer rate;

    public ProductUnitPo(Unit unit) {
        this.id = unit.getId();
        this.name = unit.getName();
    }

    public ProductUnitPo() {
    }

    public Integer getRate() {
        return rate;
    }

    public void setRate(Integer rate) {
        this.rate = rate;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
